package com.leiyuee.Thread;

/**
 * @Author : Yu_Lei
 * @create 2024/3/11
 */
public class MyThread extends Thread{

    @Override
    public void run() {
        System.out.println("继承thread方法");
    }

    public static void main(String[] args) {
        new MyThread().run();

        new Thread(()->{
            System.out.println("12133231");
        }).start();

        new Thread().run();
    }
}
